package com.hmall.search.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ItemSyncMsgDto {
    private List<Long> ids = new ArrayList<>();
    // 1新增 2修改 3删除
    private Integer type;

    public static final Integer ADD = 1;
    public static final Integer UPDATE = 2;
    public static final Integer DELETE = 3;

    public ItemSyncMsgDto(Long id, Integer type ){
        this.ids.add(id);
        this.type = type;
    }

}